//23ae00d7ec99e401bc34831ce4099c13  开发环境
//95daf715cda747fff3d2f58cbedd8d7a  测试帐号
var __env = (function() {
    var mode = 'production';
    var ctxs = {
        'dev': {
            'mode': 'dev',
            'activityApi': '//activity.api.dev.1234ye.com/activity/',
            'customerThirdApi': '//customer.third.api.dev.1234ye.com/',
            'static': '',
            'needSetCookie' : false,
            '_hmt' : '//hm.baidu.com/hm.js?23ae00d7ec99e401bc34831ce4099c13'
        },
        'test': {
            'mode': 'test',
            'activityApi': '//activity.api.test.1234ye.com/activity/',
            'customerThirdApi': '//customer.third.api.test.1234ye.com/',
            'static': '',
            'needSetCookie' : false,
            '_hmt' : '//hm.baidu.com/hm.js?d6c9b917aaa9ca26fa3ddcbd286f1d4a'
        },
        'production': {
            'mode': 'production',
            'activityApi': '//api.activity.1234ye.com/activity/',
            'customerThirdApi': '//api.customer.third.1234ye.com/third/',
            'static': '',
            'needSetCookie' : false,
            '_hmt' : '//hm.baidu.com/hm.js?23ae00d7ec99e401bc34831ce4099c13'
        }
    };
    return ctxs[mode];
})();

require.config({
    config: {
        'common/urls': {
            'mode': __env['mode'],
            'activity': __env['activityApi'],
            'customerThird': __env['customerThirdApi']
        }
    },
    baseUrl: __env['static'],
    paths: {
        'zepto': 'js/zepto.min',
        'vue': 'js/vue.min',
        'jquery': 'js/jquery-1.7.2.min',
        'handlebars': 'js/handlebars',
        '_hmt': __env['_hmt'],
        'index':'js/index'
    },
    shim: {
        'zepto': {
            exports: '$'
        },
        'vue': {
            exports: 'Vue'
        },
        'jquery': {
            exports: '$'
        }
    }
});

require(['jquery','zepto'], function() {
    var scripts = $('#requirejs').data('start');
    scripts = scripts.split(',');
    require(scripts);
});
